Environment

public final class Environment

Provides the details about the current operating system, JVM architecture, JRE version etc.

Functions

Link copied to clipboard
public static void checkEnvironment()
Checks the current operating system name and version, JRE version and throws the error if they do not meet the minimal operating system and JRE requirements.
Link copied to clipboard
public static Path defaultChromiumDir()
Returns an absolute path to the directory where the Chromium binaries are located by default.
Link copied to clipboard
public static boolean is32Bit()
Indicates whether the current JVM's architecture is 32-bit.
Link copied to clipboard
public static boolean is64Bit()
Indicates whether the current JVM's architecture is 64-bit.
Link copied to clipboard
public static boolean isArm()
Indicates whether the current JVM's architecture is ARM.
Link copied to clipboard
public static boolean isLinux()
Returns true if the current operating system is Linux.
Link copied to clipboard
public static boolean isMac()
Returns true if the current operating system is macOS.
Link copied to clipboard
public static boolean isMacBigSur()
Returns true if the current operating system is macOS Big Sur.
Link copied to clipboard
public static boolean isSupported()
Returns true if the current environment is supported.
Link copied to clipboard
public static boolean isWindows()
Returns true if the current operating system is Windows.
Link copied to clipboard
public static boolean isWindows64()
Returns true if the current platform is Windows 64-bit.
Link copied to clipboard
public static void traceEnvironment()
Prints the current environment details to the log with the INFO level.
Link copied to clipboard
public static Path userHomeDir()
Returns path to the user's home directory.
Link copied to clipboard
public static Path userTempDir()
Returns path to the user's temp directory.
Link copied to clipboard
Returns an Optional that contains a string that represents an absolute path to the local AppData directory of the current user on the Windows platform.